package com.naicha.wechat.wechat.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 奶茶
 * Created by on 2019/4/3
 * @Description 用户实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "T_User")
public class User extends WeChatUserInfo{

    /**
     * 用户ID
     */
    @TableId(value = "userID")
    private String userID;

    /**
     * 联系电话/登陆账号
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 企业ID
     */
    @TableField(value = "corpID")
    private String corpID;

    /**
     * 用户状态
     */
    @TableField(value = "state")
    private int state;

    /**
     * 用户类型 0：client 1:web
     */
    @TableField(value = "userType")
    private int userType;

}
